package com.yl.sharding.common.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @description: TODO
 * @author: yoozhoo
 * @modified By: yoozhoo
 * @date: Created in 2021/1/11 9:07 下午
 * @version:v1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class BaseEntity {
    /**
     * id
     */
    private Long id;
    /**
     * 租户id
     */
    private String tenantId;

    public BaseEntity(Long id) {
        this.id = id;
    }

    public BaseEntity(String tenantId) {
        this.tenantId = tenantId;
    }
}